package cn.edu.scau.cmi.chenmiaopeng;

import java.io.IOException;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class FactoryClient extends Application{
		public static void main(String[] args) {
			launch(args);
		}
		public void start(Stage primaryStage) throws Exception{
			try {
			  Parent root = FXMLLoader.load(getClass().getResource("/cn/edu/scau/cmi/chenmiaopeng/ui/factory/factoryUI.fxml"));
			  Scene scene = new Scene(root, 475, 300);
			  primaryStage.setScene(scene);
			  primaryStage.setTitle("工厂方法");
			  primaryStage.show();
			}
			catch(IOException e) {
				e.printStackTrace();
			}
         }
}
